package com.cooper.beautyseesee.data;

import java.util.ArrayList;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

public class BeautyType implements Parcelable {

	private String backgroundUri;

	private String name;

	private List<BeautySource> sourceUris;
	

	public String getBackgroundUri() {
		return backgroundUri;
	}

	public void setBackgroundUri(String backgroundUri) {
		this.backgroundUri = backgroundUri;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<BeautySource> getSourceUris() {
		return sourceUris;
	}

	public void setSourceUris(List<BeautySource> sourceUris) {
		this.sourceUris = sourceUris;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(backgroundUri);
		dest.writeString(name);
		dest.writeList(sourceUris);
	}

	public static final Parcelable.Creator<BeautyType> CREATOR = new Creator<BeautyType>() {

		@Override
		public BeautyType createFromParcel(Parcel source) {
			BeautyType result = new BeautyType();
			result.setBackgroundUri(source.readString());
			result.setName(source.readString());
			List<BeautySource> sourceUris = new ArrayList<BeautySource>();
			source.readList(sourceUris, BeautySource.class.getClassLoader());
			result.setSourceUris(sourceUris);
			return result;
		}

		@Override
		public BeautyType[] newArray(int size) {
			return new BeautyType[0];
		}

	};

}
